d<script>
	import {
		useUserStore,
		useAppStore
	} from './store';
	export default {
		onLaunch: function() {
			console.log('App Launch');

		},
		onShow: function() {
			const appStore = useAppStore();
			const userStore = useUserStore();
			if (userStore.token) {
				userStore.getUserInfo(); // 初始化用户信息
				appStore.getAppConfig(); // 初始化应用配置信息
			}
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
			// this.unIm(); // 退出IM

		},
		onExit: function() {
			console.log('App Exit')
			// this.unIm(); // 退出IM
		},
		methods: {

		},

	}
</script>

<style lang="less">
	@import '@/static/icon/iconfont.css';
	@import '@/static/style/custom-wd-style.less';
	@import '@/static/style/common.less';

	:root,
	page {}

	.wot-theme-light,
	.wot-theme-dark {
		// min-height: 100vh;
	}

	.wot-theme-dark {
		color: #f5f5f5 !important;
		background-color: black !important;
	}
</style>